﻿using DevExpress.Web.ASPxEditors;
using DevExpress.Web.Mvc;

namespace Dogshow.Web.Settings
{
    public class ComboBoxSettingsCommon : ComboBoxSettings
    {
        public ComboBoxSettingsCommon()
        {
            ShowModelErrors = true;
            Properties.DropDownRows = 15;
            Properties.ValueType = typeof(int);
            Properties.ValueField = "Id";
            Properties.IncrementalFilteringMode = IncrementalFilteringMode.Contains;
            Properties.EnableCallbackMode = true;
            ControlStyle.CssClass = "editor";
        }

        public string ButtonClick
        {
            get {
                return Properties.ClientSideEvents.ButtonClick;
            }
            set {
                Properties.ClientSideEvents.ButtonClick = value;
            }
        }
    }
}